package com.itheima.service.db.impl;

import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itheima.domain.db.Report;
import com.itheima.domain.db.ReportUser;
import com.itheima.mapper.ReportMapper;
import com.itheima.service.db.ReportService;
import com.itheima.service.db.ReportUserService;
import com.itheima.service.db.UserInfoService;
import com.itheima.vo.DimensionsVo;
import com.itheima.vo.ReportVo;
import com.itheima.vo.SimilarYouVo;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;

@DubboService
public class ReportServiceImpl implements ReportService {

    @Autowired
    private ReportMapper reportMapper;

    @Autowired
    private ReportUserService reportUserService;

    @Autowired
    private UserInfoService userInfoService;

    @Override
    public Report findReportById(Integer reportId) {
        // 查询报告结果
        return reportMapper.selectById(reportId);
    }

    // 查询所有报告
    @Override
    public List<Report> findAll() {
        return reportMapper.selectList(null);
    }
}
